/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.pb.sistcomp.dao;

import br.pb.sistcomp.entity.Lance;
import br.pb.sistcomp.entity.Pessoa;
import br.pb.sistcomp.exception.*;
import java.util.List;

/**
 * Class that represents an entity in the system
 *
 * @author George Alcantara, george.lima@dce.ufpb.br
 * @version 1.0
 *
 * Copyright (C) 2011 SistComp.
 */

public interface LanceDao {
    public void salvarLance(Lance lance) throws ErroAoSalvarException;
    public void removerLance(Lance lance) throws ErroAoRemoverException;
    public List<Lance> listarTodos();
    public Lance buscarLance(Integer id);
    public List<Lance> buscarLancesPorUsuario(Pessoa pessoa);
}
